package com.xhsj.user.pms.patent.vo;

import com.google.common.collect.Lists;
import com.xhsj.user.generalprocess.entity.TbPamGeneralOpinionFile;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Description EnterCountryVo
 * @Author suxiaolin
 * @Date 2021/3/9 16:43
 */
@Data
public class EnterCountryVo {
    /**
     * 节点id
     */
    @NotNull(message = "节点id不能为空")
    private Long nodeId;

    /**
     * id
     */
    @NotNull(message = "id不能为空")
    private Long id;

    @NotNull(message = "processTaskId不能为空")
    private Long processTaskId;

    @NotNull(message = "status不能为空")
    private Integer status;

    private String opinionText;

    private List<TbPamGeneralOpinionFile> opinionFiles = Lists.newArrayList(); // 意见文件

    @NotNull(message = "countryNames不能为空")
    @Size(min = 1,message = "countryNames不能为空")
    @Valid
    private List<String> countryNames = Lists.newArrayList(); // 选择国家名称

    // 申请人id
    @NotNull(message = "applyUserId 申请人不能为空")
    private Long applyUserId;

}
